package com.ty.user.starter.util;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 数据返回封闭类
 * @param <T>
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class R<T> {

    @ApiModelProperty(name = "code", value = "code码")
    private Integer code;

    @ApiModelProperty(name = "msg", value = "操作结果信息")
    private String msg;

    @ApiModelProperty(name = "data", value = "返回数据")
    private T data;
}
